package com.inforich.projectManage.service;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inforich.common.core.domain.AjaxResult;
import java.util.List;
import java.util.Map;
import com.inforich.projectManage.domain.Project;

/**
 * 项目Service接口
 *
 * @author hjm
 * @date 2022-10-22
 */
public interface IProjectService extends IService<Project> {

  /**
   * 分页列表
   */
  Page<Project> pageProject(Page<Project> page, Map<String, Object> map);

  /**
   * 列表
   */
  List<Project> listProject(Map<String, Object> map);

  Project getProjectById(String id);

  int insertProject(Project project);

  int updateProject(Project project);

  String getProjectName(String id);

  String checkData(Project project);

  /**
   * 资源审批
   */
  AjaxResult approveResource(JSONObject param);

  /**
   * 项目审批
   */
  AjaxResult approveProject(JSONObject param);

  /**
   * 判断该项目是否审批通过
   */
  Boolean checkProjectPass(String projectId);
}
